<%@ page contentType="text/html; charset=UTF-8"%>
<%@page import="com.sinodata.bsm.center.bean.ResTypeBean"%>
<%@page import="java.util.List"%>
<%@page import="com.sinodata.bsm.common.vo.Attribute"%>
<%@page import="net.sf.json.JSONArray"%>
<%@ include file="../include/taglib.jsp"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
  <head>
  	<title>性能查询</title>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
    <meta http-equiv="pragma" content="no-cache"/>
	<meta http-equiv="cache-control" content="no-cache"/>
	<meta http-equiv="expires" content="0"/>   
    <%@ include file="../include/common.jsp"%>
	<%@ include file="../include/table.jsp"%>
	<link rel="stylesheet" type="text/css" href="${pageContext.request.contextPath}/style/default/bsm/sub_menu.css" />

	<script type="text/javascript">
		
		$(document).ready(function(){
			$("#propertyInfo").dataTable({
				"bProcessing": false, 
				//"aaData": ${propertys},
				"bPaginate":false,
				"bSort": true,
				"bFilter":false,
				"bServerSide": true,
				"sPaginationType": 'full_numbers',
				"sServerMethod": 'POST',
				"sAjaxSource":'prop-value!list.action',
				"aoColumns":[
					{"mDataProp":"propname","bSortable": false},
					{"mDataProp":"propvalue","bSortable": false},
					{"mDataProp":"collectTime","bSortable": false}
				],
				"oLanguage":{
					"sZeroRecords": "没有找到记录",
					"sInfo":"",
					"sInfoEmpty": ""
				}, 
				"fnServerParams":function(aoData){
			
					aoData.push({'name':'id','value':'${resId}'});
					aoData.push({'name':'tt','value': new Date().getMilliseconds()});
				}
			});
			setInterval('refreshData()',10000);
			
		});
		refreshData = function (){
			
				$('#propertyInfo').dataTable().fnClearTable();
			}
	</script>
  </head>
  
  <body >
	<h2 class="title-h2"><span><img src="${pageContext.request.contextPath}/style/default/bsm/images/arrow-down.gif"/></span>资源实时性能信息</h2>
	<div id="resTypePropertyInfo">
		<table width="100%"  id="propertyInfo" cellpadding="0" cellspacing="0" border="0" class="display"  >
			<thead>
    	 		<tr>
    	 			<th width="25%">指标名称</th>
    	 			<th width="25%">采集值</th>
    	 			<th width="50%">采集时间</th>
    	 		</tr>
    	 	</thead>
    	 </table>
	</div>



  </body>
</html>
